package com.nervenets.web.controller.news;

import com.nervenets.web.enumeration.NewsType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

@Data
public class TypeNewsParams implements Serializable {
    @ApiModelProperty(value = "团队ID", required = true)
    @Positive(message = "团队ID不能为空")
    private long managerId;
    @ApiModelProperty(value = "资讯类型", required = true)
    @NotNull(message = "资讯类型不能为空")
    private NewsType type;
}
